package lab2;

import lab4TwiceTest.EmployeeVisitor;

public class RegularStaff extends Employee{
    private int hours;//工作时长，s为单位
    private EnumDepartment department;
    private EnumEmployeeLevel level;

    private int overtime;//加班时长
    private int leaveTime;//请假时长


    public RegularStaff(){}
    public RegularStaff(String name, EnumDepartment department, EnumEmployeeLevel level) {
        this.name = name;
        this.department = department;
        this.level = level;
    }

    @Override
    public void setWorkingHours(int hours) {
        this.hours = hours;
    }

    public void setOvertime(int overtime) {
        this.overtime = overtime;
    }

    public void setLeaveTime(int leaveTime) {
        this.leaveTime = leaveTime;
    }

    @Override
    public void accept(VisitorInterface visitor) {
        visitor.visit(this);
    }

    @Override
    public void accept(EmployeeVisitor visitor) {
        visitor.visit(this);
    }

    public int getHours() {
        return hours;
    }

    public EnumDepartment getDepartment() {
        return department;
    }

    public EnumEmployeeLevel getLevel() {
        return level;
    }

    public String getName(){
        return name;
    }

    public int getOvertime() {
        return overtime;
    }

    public int getLeaveTime() {
        return leaveTime;
    }
}
